class_name SoundManager extends Node2D

func _init():
	ObjectManager.soundManager = self

func playBGM():
	$BGM.play()

func play(type: String):
	match type:
		SoundType.button_click:
			$"按钮点击".play()
		SoundType.point_click:
			$"落点点击".play()
		SoundType.big_born:
			$"大子出生".play()
		SoundType.big_move:
			$"大子移动".play()
		SoundType.big_possess:
			$"大子叛变".play()
		SoundType.big_evolve:
			$"大子转型".play()
		SoundType.big_die:
			$"大子死亡".play()
		SoundType.big_attack:
			$"大子攻击".play()
		SoundType.chess_select:
			$"棋子点击".play()
		SoundType.close_cancel:
			$"关闭取消".play()
		SoundType.turn_change:
			$"回合切换".play()
		SoundType.dialog_open:
			$"弹窗打开".play()
		SoundType.幽灵_游荡:
			$"幽灵游荡".play()
		SoundType.恶灵_灵狩:
			$"恶灵灵狩".play()
		SoundType.恶灵_附身:
			$"恶灵附身".play()
		SoundType.炮台_attack:
			$"炮台攻击".play()
		SoundType.狙炮_瞄准:
			$"狙炮瞄准".play()
		SoundType.地灵_抹平:
			$"地灵抹平".play()
		SoundType.地灵_占据:
			$"地灵占据".play()
		SoundType.鼓舞_鼓舞:
			$"鼓舞鼓舞".play()
		SoundType.精灵_祝福:
			$"精灵祝福".play()
		SoundType.灵阵_布阵:
			$"灵阵布阵".play()
		SoundType.拳师_拳击:
			$"拳师拳击".play()
		SoundType.沙兵_化沙:
			$"沙兵化沙".play()
		SoundType.天谕_眨眼:
			$"天谕眨眼".play()
		SoundType.妖术_献祭:
			$"妖术献祭".play()
		SoundType.妖术_冰冻:
			$"妖术冰冻".play()
		SoundType.妖术_瘟疫:
			$"妖术瘟疫".play()
		SoundType.野马_践踏:
			$"野马践踏".play()
		SoundType.野猪_冲锋:
			$"野猪冲锋".play()
